package com.fbs.framework.exception;

import com.fbs.framework.interceptor.GlobalInterceptor;

/*
创建者:虾米糖
*/
//异常基类
public class BaseException extends RuntimeException {
    private int code;
    private String msg;
    private Object data;

    public BaseException() {
        super();
    }
    public BaseException(int code) {
        this.code = code ;
    }

    public BaseException(String message) {
        super(message);
    }
    public BaseException(int code ,String message) {
      this.code = code;
      this.msg = message;
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
